package com.ruoyi.djb.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.djb.mapper.DjbDistrictUserMapper;
import com.ruoyi.djb.domain.DjbDistrictUser;
import com.ruoyi.djb.service.IDjbDistrictUserService;
import com.ruoyi.common.core.text.Convert;

/**
 * 住户管理Service业务层处理
 * 
 * @author xxd
 * @date 2023-12-08
 */
@Service
public class DjbDistrictUserServiceImpl implements IDjbDistrictUserService 
{
    @Autowired
    private DjbDistrictUserMapper djbDistrictUserMapper;

    /**
     * 查询住户管理
     * 
     * @param id 住户管理主键
     * @return 住户管理
     */
    @Override
    public DjbDistrictUser selectDjbDistrictUserById(Integer id)
    {
        return djbDistrictUserMapper.selectDjbDistrictUserById(id);
    }

    /**
     * 查询住户管理列表
     * 
     * @param djbDistrictUser 住户管理
     * @return 住户管理
     */
    @Override
    public List<DjbDistrictUser> selectDjbDistrictUserList(DjbDistrictUser djbDistrictUser)
    {
        return djbDistrictUserMapper.selectDjbDistrictUserList(djbDistrictUser);
    }

    /**
     * 新增住户管理
     * 
     * @param djbDistrictUser 住户管理
     * @return 结果
     */
    @Override
    public int insertDjbDistrictUser(DjbDistrictUser djbDistrictUser)
    {
        return djbDistrictUserMapper.insertDjbDistrictUser(djbDistrictUser);
    }

    /**
     * 修改住户管理
     * 
     * @param djbDistrictUser 住户管理
     * @return 结果
     */
    @Override
    public int updateDjbDistrictUser(DjbDistrictUser djbDistrictUser)
    {
        return djbDistrictUserMapper.updateDjbDistrictUser(djbDistrictUser);
    }

    /**
     * 批量删除住户管理
     * 
     * @param ids 需要删除的住户管理主键
     * @return 结果
     */
    @Override
    public int deleteDjbDistrictUserByIds(String ids)
    {
        return djbDistrictUserMapper.deleteDjbDistrictUserByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除住户管理信息
     * 
     * @param id 住户管理主键
     * @return 结果
     */
    @Override
    public int deleteDjbDistrictUserById(Integer id)
    {
        return djbDistrictUserMapper.deleteDjbDistrictUserById(id);
    }
}
